#!/bin/sh

. /usr/local/certificate-services/environment

cd $EJBCA_HOME

echo "Enter PIN A used by eIDCA"
read eidca
./bin/ejbca.sh ca activateca eIDCA $eidca

echo "Enter PIN B used by eSignCA"
read esignca
./bin/ejbca.sh ca activateca eSignCA $esignca

echo "Enter PIN C used by MSDomainLogonCA"
read msca
./bin/ejbca.sh ca activateca MSDomainLogonCA $msca

echo "Enter PIN D used by ServerCA"
read serverca
./bin/ejbca.sh ca activateca ServerCA $serverca

echo "Enter PIN E used by MachineCertCA"
read MachineCertCA
./bin/ejbca.sh ca activateca MachineCertCA $MachineCertCA

echo "Enter PIN F used by SoftTokenCA"
read SoftTokenCA
./bin/ejbca.sh ca activateca SoftTokenCA $SoftTokenCA

